home *** CD-ROM | disk | FTP | other *** search
-
-
-
- QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt((((3333qqqqtttt))))
-
-
-
- NNNNAAAAMMMMEEEE
- QGridLayout - The QVBoxLayout class lays out child widgets
- in a grid
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <qlayout.h>
-
- Inherits QLayout.
-
- PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrrssss
- QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt (((( QQQQWWWWiiiiddddggggeeeetttt **** _p_a_r_e_n_t,,,, iiiinnnntttt _n_R_o_w_s,,,, iiiinnnntttt _n_C_o_l_s
- QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt (((( iiiinnnntttt _n_R_o_w_s,,,, iiiinnnntttt _n_C_o_l_s,,,, iiiinnnntttt _a_u_t_o_B_o_r_d_e_r
- ~~~~QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt ()
- vvvvooooiiiidddd aaaaddddddddWWWWiiiiddddggggeeeetttt (((( QQQQWWWWiiiiddddggggeeeetttt ****,,,, iiiinnnntttt _r_o_w,,,, iiiinnnntttt _c_o_l,,,, iiiinnnntttt _a_l_i_g_n
- vvvvooooiiiidddd aaaaddddddddMMMMuuuullllttttiiiiCCCCeeeellllllllWWWWiiiiddddggggeeeetttt (((( QQQQWWWWiiiiddddggggeeeetttt ****,,,, iiiinnnntttt _f_r_o_m_R_o_w,,,, iiiinnnntttt _t_o_R_o_w,,,,
- iiiinnnntttt _f_r_o_m_C_o_l
- vvvvooooiiiidddd aaaaddddddddLLLLaaaayyyyoooouuuutttt (((( QQQQLLLLaaaayyyyoooouuuutttt **** _l_a_y_o_u_t,,,, iiiinnnntttt _r_o_w,,,, iiiinnnntttt ccccoooollll ))))
- vvvvooooiiiidddd sssseeeettttRRRRoooowwwwSSSSttttrrrreeeettttcccchhhh (((( iiiinnnntttt _r_o_w,,,, iiiinnnntttt ssssttttrrrreeeettttcccchhhh ))))
- vvvvooooiiiidddd sssseeeettttCCCCoooollllSSSSttttrrrreeeettttcccchhhh (((( iiiinnnntttt _c_o_l,,,, iiiinnnntttt ssssttttrrrreeeettttcccchhhh ))))
- vvvvooooiiiidddd aaaaddddddddRRRRoooowwwwSSSSppppaaaacccciiiinnnngggg (((( iiiinnnntttt _r_o_w,,,, iiiinnnntttt mmmmiiiinnnnssssiiiizzzzeeee ))))
- vvvvooooiiiidddd aaaaddddddddCCCCoooollllSSSSppppaaaacccciiiinnnngggg (((( iiiinnnntttt _c_o_l,,,, iiiinnnntttt mmmmiiiinnnnssssiiiizzzzeeee ))))
- iiiinnnntttt nnnnuuuummmmRRRRoooowwwwssss (((()))) ccccoooonnnnsssstttt
- iiiinnnntttt nnnnuuuummmmCCCCoooollllssss (((()))) ccccoooonnnnsssstttt
- vvvvooooiiiidddd eeeexxxxppppaaaannnndddd (((( iiiinnnntttt _r_o_w_s,,,, iiiinnnntttt ccccoooollllssss ))))
-
- PPPPrrrrooootttteeeecccctttteeeedddd MMMMeeeemmmmbbbbeeeerrrrssss
- vvvviiiirrrrttttuuuuaaaallll QQQQCCCChhhhaaaaiiiinnnn**** mmmmaaaaiiiinnnnVVVVeeeerrrrttttiiiiccccaaaallllCCCChhhhaaaaiiiinnnn (((())))
- vvvviiiirrrrttttuuuuaaaallll QQQQCCCChhhhaaaaiiiinnnn**** mmmmaaaaiiiinnnnHHHHoooorrrriiiizzzzoooonnnnttttaaaallllCCCChhhhaaaaiiiinnnn (((())))
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd iiiinnnniiiittttGGGGMMMM (((())))
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The QVBoxLayout class lays out child widgets in a grid.
-
- QGridLayout takes the space it gets (from its parent layout
- or from the mainWidget()), divides it up into rows and
- columns, and puts each of the child widgets it manages into
- the correct cell(s).
-
- Columns and rows behave identically; we will discuss columns
- but there are eqivalent functions for rows.
-
- Each column has a minimum width and a stretch factor. The
- minimum width is the greatest of that set using
- addRowSpacing() and the minimum width of each widget in that
- column. The stretch factor is set using setColStretch() and
- determines how much of the available space the column will
- get, over and above its necessary minimum.
-
- Normally, each child widget or layout is put into a cell of
- its own using addWidget() or addLayout(), but you can also
- put widget into multiple cells using addMultiCellWidget().
- However, if you do that, QGridLayout does not take the child
-
-
-
- Page 1 (printed 9/22/98)
-
-
-
-
-
-
- QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt((((3333qqqqtttt))))
-
-
-
- widget's minimum size into consideration (because it does
- not known what column the minimum width should belong to).
- Thus you must set the minimum width of each column using
- addColSpacing().
-
- This illustration shows a fragment of a dialog with a five-
- column, three-row grid (the grid is shown overlaid in
- magenta):
-
- [[[[IIIImmmmaaaaggggeeee OOOOmmmmiiiitttttttteeeedddd]]]]
-
- Columns 0, 2 and 4 in this dialog fragment are made up of a
- QLabel, a QLineEdit and a QListBox. Columns 1 and 2 are
- placeholders, made with setColSpacing(). Row 0 consists of
- three QLabel objects, row 1 of three QLineEdit objects and
- row 2 of three QListBox objects.
-
- Since we did not want any space between the rows, we had to
- use placeholder columns to get the right amount of space
- between the columns.
-
- Note that the columns and rows are not equally wide/tall: If
- you want two columns to be equally wide, you must set the
- columns' minimum widths and stretch factors to be the same
- yourself. You do this using addColSpacing() and
- setStretch().
-
- If the QGridLayout is not the top-level layout (ie. is not
- managing all of the widget's area and children), you must
- add it to its parent layout when you have created it, but
- before you can do anything with it. The normal way to add a
- layout is by calling parentLayout->addLayout().
-
- Once you have done that, you can start putting widgets and
- other layouts in the cells of your grid layout using
- addWidget(), addLayout() and addMultiCellWidget().
-
- Finally, if the grid is the top-level layout, you activate()
- it.
-
- QGridLayout also includes two margin widths: The border
- width and the inter-box width. The border width is the width
- of the reserved space along each of the QGridLayout's four
- sides. The intra-widget width is the width of the
- automatically allocated spacing between neighbouring boxes.
-
- The border width defaults to 0, and the intra-widget width
- defaults to the same as the border width. Both are set using
- arguments to the constructor.
-
- Examples: pref/pref.cpp layout/layout.cpp
- widgets/widgets.cpp
-
-
-
- Page 2 (printed 9/22/98)
-
-
-
-
-
-
- QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt((((3333qqqqtttt))))
-
-
-
- MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDOOOOCCCCUUUUMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
- QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt (((( QQQQWWWWiiiiddddggggeeeetttt **** ppppaaaarrrreeeennnntttt,,,, iiiinnnntttt nnnnRRRRoooowwwwssss,,,, iiiinnnntttt
- nnnnCCCCoooollllssss,,,, iiiinnnntttt bbbboooorrrrddddeeeerrrr====0000,,,, iiiinnnntttt aaaauuuuttttooooBBBBoooorrrrddddeeeerrrr ==== ----1111,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr ****
- nnnnaaaammmmeeee====0000 ))))
- Constructs a new QGridLayout with _n_R_o_w_s rows, _n_C_o_l_s columns
- and main widget _p_a_r_e_n_t. _p_a_r_e_n_t may not be 0.
-
- _b_o_r_d_e_r is the number of pixels between the edge of the
- widget and the managed children. _a_u_t_o_B_o_r_d_e_r is the default
- number of pixels between cells. If _a_u_t_o_B_o_r_d_e_r is -1 the
- value of _b_o_r_d_e_r is used.
-
- _n_a_m_e is the internal object name.
-
- QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt (((( iiiinnnntttt nnnnRRRRoooowwwwssss,,,, iiiinnnntttt nnnnCCCCoooollllssss,,,, iiiinnnntttt aaaauuuuttttooooBBBBoooorrrrddddeeeerrrr ====
- ----1111,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** nnnnaaaammmmeeee====0000 ))))
- Constructs a new grid with _n_R_o_w_s rows and _n_C_o_l_s columns, If
- _a_u_t_o_B_o_r_d_e_r is -1, this QGridLayout will inherits its
- parent's defaultBorder(), otherwise _a_u_t_o_B_o_r_d_e_r is used.
-
- You have to insert this grid into another layout before
- using it.
-
- QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::~~~~QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt (((())))
- Deletes this grid. Geometry management is terminated if this
- is a top-level grid.
-
- vvvvooooiiiidddd QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::aaaaddddddddCCCCoooollllSSSSppppaaaacccciiiinnnngggg (((( iiiinnnntttt ccccoooollll,,,, iiiinnnntttt mmmmiiiinnnnssssiiiizzzzeeee ))))
- Sets the minimum width of _c_o_l to _m_i_n_s_i_z_e pixels.
-
- vvvvooooiiiidddd QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::aaaaddddddddLLLLaaaayyyyoooouuuutttt (((( QQQQLLLLaaaayyyyoooouuuutttt **** llllaaaayyyyoooouuuutttt,,,, iiiinnnntttt rrrroooowwww,,,, iiiinnnntttt ccccoooollll
- ))))
- Places another layout at position (_r_o_w, _c_o_l) in the grid.
- The top left position is (0,0).
-
- Examples: widgets/widgets.cpp
-
- vvvvooooiiiidddd QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::aaaaddddddddMMMMuuuullllttttiiiiCCCCeeeellllllllWWWWiiiiddddggggeeeetttt (((( QQQQWWWWiiiiddddggggeeeetttt **** wwww,,,, iiiinnnntttt ffffrrrroooommmmRRRRoooowwww,,,,
- iiiinnnntttt ttttooooRRRRoooowwww,,,, iiiinnnntttt ffffrrrroooommmmCCCCoooollll,,,, iiiinnnntttt ttttooooCCCCoooollll,,,, iiiinnnntttt aaaalllliiiiggggnnnn ==== 0000 ))))
- Adds the widget _w to the cell grid, spanning multiple
- rows/columns.
-
- Note that multicell widgets do not influence the minimum or
- maximum size of columns/rows they span. Use addColSpacing()
- or addRowSpacing() to set minimum sizes explicitly.
-
- Alignment is specified by _a_l_i_g_n which takes the same
- arguments as QLabel::setAlignment(), alignment has no effect
- unless you have set QWidget::maximumSize().
-
- Examples: layout/layout.cpp widgets/widgets.cpp
-
-
-
-
- Page 3 (printed 9/22/98)
-
-
-
-
-
-
- QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt((((3333qqqqtttt))))
-
-
-
- vvvvooooiiiidddd QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::aaaaddddddddRRRRoooowwwwSSSSppppaaaacccciiiinnnngggg (((( iiiinnnntttt rrrroooowwww,,,, iiiinnnntttt mmmmiiiinnnnssssiiiizzzzeeee ))))
- Sets the minimum height of _r_o_w to _m_i_n_s_i_z_e pixels.
-
- vvvvooooiiiidddd QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::aaaaddddddddWWWWiiiiddddggggeeeetttt (((( QQQQWWWWiiiiddddggggeeeetttt **** wwww,,,, iiiinnnntttt rrrroooowwww,,,, iiiinnnntttt ccccoooollll,,,, iiiinnnntttt
- aaaalllliiiiggggnnnn ==== 0000 ))))
- Adds the widget _w to the cell grid at _r_o_w, _c_o_l. The top left
- position is (0,0)
-
- Alignment is specified by _a_l_i_g_n which takes the same
- arguments as QLabel::setAlignment(). Note that widgets take
- all the space they can get; alignment has no effect unless
- you have set QWidget::maximumSize().
-
- Examples: pref/pref.cpp layout/layout.cpp
- widgets/widgets.cpp
-
- vvvvooooiiiidddd QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::eeeexxxxppppaaaannnndddd (((( iiiinnnntttt nnnnRRRRoooowwwwssss,,,, iiiinnnntttt nnnnCCCCoooollllssss ))))
- Expands this grid so that it will have _n_R_o_w_s rows and _n_C_o_l_s
- columns. Will not shrink the grid.
-
- vvvvooooiiiidddd QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::iiiinnnniiiittttGGGGMMMM (((()))) [[[[vvvviiiirrrrttttuuuuaaaallll pppprrrrooootttteeeecccctttteeeedddd]]]]
- Initializes this grid.
-
- Reimplemented from QLayout.
-
- QQQQCCCChhhhaaaaiiiinnnn **** QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::mmmmaaaaiiiinnnnHHHHoooorrrriiiizzzzoooonnnnttttaaaallllCCCChhhhaaaaiiiinnnn (((()))) [[[[vvvviiiirrrrttttuuuuaaaallll pppprrrrooootttteeeecccctttteeeedddd]]]]
- This function returns the main horizontal chain.
-
- Reimplemented from QLayout.
-
- QQQQCCCChhhhaaaaiiiinnnn **** QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::mmmmaaaaiiiinnnnVVVVeeeerrrrttttiiiiccccaaaallllCCCChhhhaaaaiiiinnnn (((()))) [[[[vvvviiiirrrrttttuuuuaaaallll pppprrrrooootttteeeecccctttteeeedddd]]]]
- This function returns the main vertical chain.
-
- Reimplemented from QLayout.
-
- iiiinnnntttt QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::nnnnuuuummmmCCCCoooollllssss (((()))) ccccoooonnnnsssstttt
- Returns the number of columns in this grid.
-
- iiiinnnntttt QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::nnnnuuuummmmRRRRoooowwwwssss (((()))) ccccoooonnnnsssstttt
- Returns the number of rows in this grid.
-
- vvvvooooiiiidddd QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::sssseeeettttCCCCoooollllSSSSttttrrrreeeettttcccchhhh (((( iiiinnnntttt ccccoooollll,,,, iiiinnnntttt ssssttttrrrreeeettttcccchhhh ))))
- Sets the stretch factor of column _c_o_l to _s_t_r_e_t_c_h. The first
- column is number 0.
-
- The stretch factor is relative to the other columns in this
- grid. Columns with higher stretch factor take more of the
- available space.
-
- The default stretch factor is 0. If the stretch factor is 0
- and no other column in this table can grow at all, the
- column may still grow.
-
-
-
- Page 4 (printed 9/22/98)
-
-
-
-
-
-
- QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt((((3333qqqqtttt))))
-
-
-
- Examples: pref/pref.cpp layout/layout.cpp
- widgets/widgets.cpp
-
- vvvvooooiiiidddd QQQQGGGGrrrriiiiddddLLLLaaaayyyyoooouuuutttt::::::::sssseeeettttRRRRoooowwwwSSSSttttrrrreeeettttcccchhhh (((( iiiinnnntttt rrrroooowwww,,,, iiiinnnntttt ssssttttrrrreeeettttcccchhhh ))))
- Sets the stretch factor of row _r_o_w to _s_t_r_e_t_c_h. The first row
- is number 0.
-
- The stretch factor is relative to the other rows in this
- grid. Rows with higher stretch factor take more of the
- available space.
-
- The default stretch factor is 0. If the stretch factor is 0
- and no other row in this table can grow at all, the row may
- still grow.
-
- Examples: widgets/widgets.cpp
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- hhhhttttttttpppp::::////////wwwwwwwwwwww....ttttrrrroooollllllll....nnnnoooo////qqqqtttt////qqqqggggrrrriiiiddddllllaaaayyyyoooouuuutttt....hhhhttttmmmmllll
-
- CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
- Copyright 1992-1997 Troll Tech AS. See the LICENSE file
- included in the distribution for a complete license
- statement.
-
- AAAAUUUUTTTTHHHHOOOORRRR
- Generated automatically from the source code.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 5 (printed 9/22/98)
-
-
-
-